<!-- 申请结果页 -->
<template>
  <view v-if="shenheStatus == 0" class="result-page">
    <view class="content-body">
      <view style="width: 100%" v-html="configData"></view>
    </view>
  </view>
  <Shenhe v-else-if="shenheStatus == 1"></Shenhe>
</template>

<script>
import Shenhe from '@/components/shenhe/shenhe';
export default {
  components: { Shenhe },
  data() {
    return {
      configData: '',
    };
  },
  onLoad(t) {
    if (t.title) {
      uni.setNavigationBarTitle({
        title: t.title,
      });
    } else {
      uni.setNavigationBarTitle({
        title: this.$t('admin.agreement'),
      });
    }
    if (uni.getStorageSync('richText')) {
      this.configData = uni.getStorageSync('richText');
    } else {
      this.$utils.goBack(1);
    }
  },
  computed: {},
  onShow() {},
  watch: {},
  methods: {},
  onUnload() {},
};
</script>

<style lang="scss" scoped>
.result-page {
  width: 100%;
  background: #ffffff;
  min-height: 100vh;
  padding-top: 30rpx;
  .content-body {
    width: 92vw;
    margin: 0 auto;
  }
}
</style>
